<%@ include file="htmlHead.jsp" %>
<link rel="stylesheet" type="text/css" href="${path}/css/consumer.css"/>
<link rel="stylesheet" type="text/css" href="${path}/js/libs/bootstrap/css/bootstrap.css"/>
</head>
<%@ page import="com.glodon.paas.account.web.util.SecurityUtils" %>
<%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page pageEncoding="utf-8" %>
<body>
<div id="authorize_content_wrap">
    <div id="authorize_container">
        <div id="glodon_authorize">
            <div class="well">
                <div class="row">
                    <div class="span6">
                        <a href="#"><c:out value="${client_id}"/></a>需要得到您的授权来进行以下操作.
                    </div>
                </div>
               
                <div class="row">
                    <div class="span6">                       			
                        <c:forEach var="data" items="${scopeInfo}">
							<div class="column fieldset" style="margin-left: 0">
							<div class="span3">${ data.name }</div>
							</div>
						</c:forEach>
                    </div>
                </div>             
				

                <div class="row">
	                <div class="form-actions">
	                        <form action="${path}/oauth2/authorize" method="post" id='confirmationForm' name='confirmationForm'
	                              style="display:inline">	
	                            <input name='user_oauth_approval' value='true' type='hidden'/>
	                            <input name='authorize' value='授权' type='submit' class="btn btn-success">
	                        </form>
	                        <form action="${path}/oauth2/authorize" method="post" id='denialForm' name='denialForm'
	                              style="display:inline">
	                            <input name='user_oauth_approval' value='false' type='hidden'/>
	                            <input name='deny' value='拒绝' type='submit' class="btn">
	                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
</body>
</html>